home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1285 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: telesciences.com!fluorite!tnelson
  2. From: tnelson@fluorite.telesciences.com (Tracy M Nelson)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: HELP NEEDED: What the hell is wrong with my program?
  5. Date: 12 Jan 1996 18:24:41 GMT
  6. Organization: Securicor Telesciences Inc
  7. Message-ID: <4d6919$3oi@artinite.telesciences.com>
  8. References: <4cvu6r$vcs@carbon.cudenver.edu>
  9. NNTP-Posting-Host: fluorite.telesciences.com
  10. X-Newsreader: Tin 1.1 PL5
  11.  
  12. ELLIE XIAO-YU LI (exli@ouray.cudenver.edu) wrote:
  13. : I am writing a C program on unix platforms. When I run my program, I keep
  14. : getting a system warning "Unaligned access...". Does anyone out there know what
  15. : this "unaligned access" crap is and what cuases the problem? Any advice on how
  16. : to fix the problem is appreciated. Please reply to this post or email me.
  17.  
  18. You're not casting a character buffer to a long or anything, are you?  If you've
  19. got a four-byte (char) buffer, you can't necessarily get a long out of it simply
  20. by casting it.
  21.  
  22. --
  23. Tracy Nelson (tnelson@telesciences.com)
  24. // WARNING: May contain code which is too intense for young programmers...
  25. Disclaimer: Park and lock it.  Not responsible!
  26.